package com.yiqi.zhiyuan.feature.certification.contract;

import com.suozhang.framework.framework.BasePresenter;
import com.suozhang.framework.framework.BaseView;
import com.yiqi.zhiyuan.entity.bo.UploadCertificatesInfo;
import com.yiqi.zhiyuan.entity.dto.DiverCertificationDTO;

import java.util.List;

import io.reactivex.Observable;

/**
 * @ProjectName: ZhiYuan
 * @Description: java类作用描述
 * @Author: lijuwen
 * @CreateDate: 2019/3/14 10:45
 * @UpdateUser: 更新者
 * @UpdateDate: 2019/3/14 10:45
 * @UpdateRemark: 更新说明
 * @Version: 1.0
 */
public interface UploadContract {

    interface Model {

        /**
         * 上传证件信息
         *
         * @param uploadCertifiteDTO
         * @return
         */
        Observable<String> doUploadCertificate(List<UploadCertificatesInfo> uploadCertifiteDTO,DiverCertificationDTO certificationDTO);




    }

    interface View extends BaseView {


        /**
         * 认证上传证件成功
         */
        void showUploadCertificateSuccess();

        /**
         * 认证上传证件信息失败
         */
        void showUploadCertificateError(String errorMsg);


    }

    interface Presenter extends BasePresenter {

        void uploadCertificate(List<UploadCertificatesInfo> uploadCertificatesInfos, DiverCertificationDTO certificationDTO);
    }
}
